-module(dlg_mgr).
-export([get/1]).

get({cust,add,L}) ->
	{value,{"queue",Queue}} = lists:keysearch("queue",1,L),
	{'div',[],[
	    {table,[],[
		{tr,[],[{td,[],"Name"},{td,[],[{input,[{name,"name"}],[]}]}]},
		{tr,[],[{td,[],"Mobile_Phone"},{td,[],[{input,[{name,"mobile_phone"}],[]}]}]}]
		}
		,{input,[{type,hidden},{name,"mod"},{value,"cust"}],[]}
		,{input,[{type,hidden},{name,"action"},{value,"add"}],[]}
		,{input,[{type,hidden},{name,"queue"},{value,Queue}],[]}
	]};

get({queue,add,_}) ->
	{'div',[],[
	    {table,[],[
		{tr,[],[{td,[],"Name"},{td,[],[{input,[{name,"name"}],[]}]}]}
		,{tr,[],[{td,[],"Max_Len"},{td,[],[{input,[{name,"max_len"}],[]}]}]}
		,{tr,[],[{td,[],"Desc"},{td,[],[{input,[{name,"desc"}],[]}]}]}]}
		,{input,[{type,hidden},{name,"mod"},{value,"queue"}],[]}
		,{input,[{type,hidden},{name,"action"},{value,"add"}],[]}
	]}.